#include <stdio.h>
#include "mystdio.h"
#include <string.h>
#include <unistd.h>
int main()
{
  MYFILE* fp = myfopen("log.txt","w");
  char* buffer1 = "hello linux\nhello c++\n";
  char* buffer2 = "hello world";
  myfwrite(buffer2,strlen(buffer2),1,fp);
  sleep(5);
  myfflush(fp);
  sleep(5);
  myfclose(fp);
  return 0;
}
